package com.sugar.MultiThread.a05threadmethod2;

/**
 * 实现方式二：实现runnable接口
 * @author felix
 * @date 2025/2/26 09:32
 */
public class MyRun implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName()+":"+i);
        }
    }
}
